package com.ycw.controller.cjy;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ycw.bean.ProDetaile;
import com.ycw.bean.ProInfo;
import com.ycw.service.xiaocai.DetailDepictService;
import com.ycw.util.Msg;

@Controller
public class DetailDepictController {

	@Autowired
	DetailDepictService detailDepictService;
	
	//项目基本情况插入
	@RequestMapping("/insertDetailDepict")
	@ResponseBody
	public Msg insertDetail(ProInfo proInfo,HttpSession session) {
		session.setAttribute("proInfo", proInfo);
		detailDepictService.insertDetail(proInfo);
		return Msg.success();
	}
	
}
